//
//  TsetModel.swift
//  DollBuy
//
//  Created by 郑东喜 on 2016/11/16.
//  Copyright © 2016年 郑东喜. All rights reserved.
//

import UIKit

class TsetModel: NSObject {
    var name : String?
    var photo : UIImage?
    var rating : Int?
    
    init?(name : String,photo : UIImage,rating : Int) {
        self.name = name
        self.photo = photo
        self.rating = rating
        
        if name.isEmpty || rating < 0 {
            return nil
        }
    }
}
